import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import elementPlusPlugin from './plugins/element-plus.js'; // 引入插件文件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import App from './App.vue'
import router from './router'

const app = createApp(App)
export {app}

app.use(elementPlusPlugin); // 使用插件来挂载 Element Plus
app.use(createPinia())
app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
